/**
 * hook工具
 */
import { ComponentInternalInstance } from 'vue'
/**
 * 通过实例和名称获取指定ref引用对象
 * @param instance
 * @param refName
 */
export function getInstance<T>(refName: string, instance: ComponentInternalInstance | null): T {
  return <T>instance?.refs[refName]
}
